//
//  FontTool.m
//  DeyiLife
//
//  Created by dy on 15/6/24.
//  Copyright (c) 2015年 Deyi. All rights reserved.
//

#import "FontTool.h"

@implementation FontTool


+ (UIFont *)font20
{
    return [UIFont fontWithName:DEFAULT_FONT_NAME size:10];
}


+ (UIFont *)font24
{
    return [UIFont fontWithName:DEFAULT_FONT_NAME size:12];
}

+ (UIFont *)font28
{
    return [UIFont fontWithName:DEFAULT_FONT_NAME size:14];
}

+ (UIFont *)font30
{
    return [UIFont fontWithName:DEFAULT_FONT_NAME size:15];
}

+ (UIFont *)fontWithSize:(NSInteger)fontSize
{
    return [UIFont systemFontOfSize:fontSize];
    //return [UIFont fontWithName:DEFAULT_FONT_NAME size:fontSize];
}

+ (UIFont *)fontWithDeviceSize:(NSInteger)fontSize
{
    return [UIFont fontWithName:DEFAULT_FONT_NAME size:(fontSize)];
}



+ (UILabel *)custom28WithLabel:(UILabel *)label
{
    [label setTextColor:[UIColor whiteColor]];
    [label setFont:[self font28]];
    return label;
}

+ (UILabel *)custom20WithLabel:(UILabel *)label
{
    [label setTextColor:[UIColor colorWithHexString:@"656565"]];
    [label setFont:[self font20]];
    return label;
}


+ (UILabel *)custom24WithLabel:(UILabel *)label
{
    [label setTextColor:[UIColor colorWithHexString:@"3a3a3a"]];
    [label setFont:[self font24]];
    return label;
}

+ (UILabel *)custom26WithLabel:(UILabel *)label
{
    [label setTextColor:[UIColor colorWithHexString:@"151515"]];
    [label setFont:[self fontWithSize:13]];
    return label;
}

+ (UILabel *)customLabel:(UILabel *)label WithSize:(NSInteger)fontSize andFontCol:(NSString *)hexString
{
    [label setTextColor:[UIColor colorWithHexString:hexString]];
    [label setFont:[self fontWithSize:fontSize]];
    return label;
}


+ (UILabel *)customNewLabelWithSize:(NSInteger)fontSize andFontCol:(NSString *)hexString
{
    UILabel *lbl = [UILabel new];
    [lbl setTextColor:[UIColor colorWithHexString:hexString]];
    [lbl setFont:[self fontWithSize:fontSize]];
    return lbl;
}





+ (UIColor *)colorA
{
    return [UIColor colorWithHexString:@"3a3a3a"];
}


+ (UIColor *)colorB
{
    return [UIColor colorWithHexString:@"151515"];
}
+ (UIColor *)colorC
{
    
    return [UIColor colorWithHexString:@"656565"];
    
}

@end
